package cn.jjxx.modules.te.service.impl;

import java.util.List;
import cn.jjxx.core.common.service.impl.CommonServiceImpl;
import cn.jjxx.modules.te.mapper.TeMainMaterialMapper;
import cn.jjxx.modules.te.entity.TeMainMaterial;
import cn.jjxx.modules.te.service.ITeMainMaterialService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**   
 * @Title: 主材动态
 * @Description: 主材动态
 * @author yw
 * @date 2022-02-16 16:44:19
 * @version V1.0   
 *
 */
@Transactional
@Service("teMainMaterialService")
public class TeMainMaterialServiceImpl  extends CommonServiceImpl<TeMainMaterialMapper,TeMainMaterial> implements  ITeMainMaterialService {

	@Override
	public boolean insertBatch(List<TeMainMaterial> list) {
		if(list!=null&&list.size()>0){
			return baseMapper.insertBatch(list);
		}
		return true;
	}

	@Override
	public boolean updateBatch(List<TeMainMaterial> list) {
		if(list!=null&&list.size()>0){
			return baseMapper.updateBatch(list);
		}
		return true;
	}
}
